<?php 
namespace app\model;
use think\Model;

class WxAssistant extends Model
{	

	public static function getTypeCn($key){
        $list = ['baidu'=>'百度文心'];
        return $list[$key];
    }

    public static function getTypeList(){
        $list = ['baidu'=>'百度文心'];
        return $list;
    }

    public static function getRequestTypeCn($key){
        $list = ['HTTP'=>'HTTP','WSS'=>'WSS','SSE'=>'SSE'];
        return $list[$key];
    }

    public static function getRequestTypeList(){
        $list = ['HTTP'=>'HTTP','WSS'=>'WSS','SSE'=>'SSE'];
        return $list;
    }
	
    public static function getCommonIsCn($key){
        $list = [1=>'是',0=>'否'];
        return $list[$key];
    }

    public static function getCommonIsList(){
        $list = [1=>'是',0=>'否'];
        return $list;
    }

    public static function getConfigTypeList(){
        // $list = ['baidu'=>[
        //     'name'=>'百度文心',
        //     'image'=>'20240401/3CCEB3FF632D4D58A81F9FA6692D5BFF.png'
        // ],'360'=>[
        //     'name'=>'360大模型',
        //     'image'=>'20240401/41F4C8FC69E44FFFB08B7BE592C92978.png'
        // ],'ali'=>[
        //     'name'=>'通义千问',
        //     'image'=>'20240401/7FA4ECC69F5846E2B1156FFD303799CB.png'
        // ]];
        $list = ['baidu'=>[
            'name'=>'百度文心',
            'image'=>'20240401/3CCEB3FF632D4D58A81F9FA6692D5BFF.png'
        ],'ali'=>[
            'name'=>'通义千问',
            'image'=>'20240401/7FA4ECC69F5846E2B1156FFD303799CB.png'
        ]];
        return $list;
    }

    public static function getConfigType($key){
        $list = ['baidu'=>[
            'name'=>'百度文心',
            'image'=>'20240401/3CCEB3FF632D4D58A81F9FA6692D5BFF.png',
            'api_url'=>'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions_pro',
            'api_id'=>'YeyMF21dXex0vmVjUP5Z044G',
            'api_secret'=>'IoFoQbHWLmf0c8t9VGXM9baYqIOqfbD7',
        ],'360'=>[
            'name'=>'360大模型',
            'image'=>'20240401/41F4C8FC69E44FFFB08B7BE592C92978.png',
            'api_url'=>'http://hawkeye.di.360.cn/bl-rag/api/ekm/llms/chat',
            'yy_user_id'=>'168',
            'yy_user_name'=>'得云',
            'model_id'=>'360GPT-130B'
        ],'ali'=>[
            'name'=>'通义千问',
            'image'=>'20240401/7FA4ECC69F5846E2B1156FFD303799CB.png',
            'api_url'=>'https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation',
            'api_id'=>'sk-f46ae189037c41358df335d5518385b3'
        ]];
        return $list[$key];
    }
}


 ?>